package com.tuozixuan.singleton;

public class Singleton {

	private static final Singleton instance = new Singleton();

	// 限制产生多个对象
	private Singleton() {
	}

	// 通过该方法获得实例对象
	public static Singleton getInstance() {
		return instance;
	}
	
	// 类中其他方法，尽量是static
	public static void doSomething() {
		
	}
}
